package com.xuebusi.toutiao.admin.api.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuebusi.toutiao.admin.api.common.exception.CustomException;
import com.xuebusi.toutiao.admin.api.common.result.ApiResult;
import com.xuebusi.toutiao.admin.api.common.result.PageInfo;
import com.xuebusi.toutiao.admin.api.user.entity.FollowerEntity;
import com.xuebusi.toutiao.admin.api.user.vo.FollowerVO;
import org.springframework.http.ResponseEntity;

public interface FollowerService extends IService<FollowerEntity> {
    /**
     * 查询粉丝列表
     *
     * @param userId      用户id
     * @param currentPage 页码
     * @param pageSize    每页个数
     * @return
     * @throws CustomException
     */
    ResponseEntity<ApiResult<PageInfo<FollowerVO>>> followers(
            Integer userId, int currentPage, int pageSize) throws CustomException;
}
